<%@include file="inc/prelude.jsp" %>
<div id="wrapper">
    <%@include file="inc/header.jsp" %>
    <%@include file="inc/menu.jsp" %>
    <div id="content">
        <div class="content-left">
            <div id="table-mess">
                <form name="edit_contact_form" action="/user/saveEdit.htm" method="POST" enctype="multipart/form-data">
                    <div class="mess">
                        <div class="mess-title"><img src="${pageContext.request.contextPath}/res/images/star.png" border="0"> Edit Contact</div>
                        <div class="mess-content" style="color:red;">
                            ${requestScope['message']}
                            <s:actionerror />
                        </div>
                        <div class="submit-card-left"><s:text name="user.edit_contact.email" />:</div>
                        <div class="submit-card-right"><s:property value="email" /><s:hidden name="email" /></div>
                        <div class="clearboth"></div>

                        <div class="submit-card-left"><s:text name="user.edit_contact.address" /></div>
                        <div class="submit-card-right"><textarea name="address">${requestScope['address']}</textarea><s:fielderror fieldName="address" /></div>
                        <div class="clearboth"></div>

                        <div class="submit-card-left"><s:text name="user.edit_contact.city" /></div>
                        <div class="submit-card-right"><input type="text" name="city" value="${requestScope['city']}" /><s:fielderror fieldName="city" /></div>
                        <div class="clearboth"></div>

                        <div class="submit-card-left"><s:text name="user.edit_contact.state" /></div>
                        <div class="submit-card-right"><input type="text" name="state" value="${requestScope['state']}"/><s:fielderror fieldName="state" /></div>
                        <div class="clearboth"></div>

                        <div class="submit-card-left"><s:text name="user.edit_contact.code" /></div>
                        <div class="submit-card-right"><input type="text" name="postal_code" value="${requestScope['postal_code']}" /><s:fielderror fieldName="postal_code" /></div>
                        <div class="clearboth"></div>

                        <div class="submit-card-left"><s:text name="user.edit_contact.country" /></div>
                        <div class="submit-card-right"><input type="text" name="country" value="${requestScope['country']}" /><s:fielderror fieldName="country" /></div>
                        <div class="clearboth"></div>

                        <div class="submit-card-left"><s:text name="user.edit_contact.phone_number" /></div>
                        <div class="submit-card-right"><input type="text" name="phone_number" value="${requestScope['phone_number']}" /><s:fielderror fieldName="phone_number" /></div>
                        <div class="clearboth"></div>

                        <div class="submit-card-left">&nbsp;</div>
                        <div class="submit-card-right submit-card-button">
                            <button type="submit">Submit</button>
                            <button onclick="document.location='/user/summary.htm';return false;">Cancel</button>
                        </div>
                        <div class="clearboth"></div>
                    </div>
                </form></div>
                <%@include file="inc/quicklink.jsp" %>
        </div>
        <%@include file="inc/rightmenu.jsp" %>
    </div>
    <%@include file="inc/footer.jsp" %>
</div>
<%@include file="inc/coda.jsp" %>

<style type="text/css">
   .errorMessage span{
        color: red;
}
</style>